package Ch6;

import java.util.Arrays;

public class ArrayEx10 {

	public static void main(String[] args) {
		
		int[] arr = new int[100];
		
		for(int i =0; i < arr.length; i++){
			arr[i] = i;
		}
		
		System.out.println(Arrays.toString(arr));
		
		int idx = Arrays.binarySearch(arr, 10);
		
		System.out.println(idx);
	}
	
}
